<%-- 
    Document   : nguoidung
    Created on : Dec 12, 2013, 2:47:34 PM
    Author     : QuocMinh
--%>

<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page isErrorPage="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<t:layout>
    <jsp:body>
        <script type="text/javascript" src="<c:url value="/resources/js/checkinput.js" />"></script>
        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tbody>
                <tr>
                    <td class="bgtitle">
                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                            <tbody>
                                <tr>
                                    <td width="20">
                                        <img src="<c:url value="/resources/images/mui_ten.gif" />">
                                    </td>
                                    <td valign="bottom" class="title">Đăng ký thành viên</td>
                                    <td width="10" valign="bottom">&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <img src="<c:url value="/resources/images/space.gif" />" width="1" height="10">
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <table width="100%" border="0" cellspacing="0" cellpadding="5">
                            <tbody>
                                <tr>
                                    <td style="border:1px #CCCCCC solid; padding:10px">
                                        <form:form method="post" action="XuLi" modelAttribute="nguoidung" style="margin:0; padding:0" onsubmit="return verifyregisterForm(this)">
                                            <table width="55%" border="0" align="center" cellpadding="3" cellspacing="0" bordercolor="#CCCCCC" style="font-family: Tahoma; font-size: 10pt; border-collapse:collapse; padding:10px">
                                                <tbody>
                                                    <tr>
                                                        <td width="35%"><form:label path="email">Địa chỉ email (*) </form:label></td>
                                                        <td width="70%"><form:input path="email" cssClass="box_input" size="24"/></td>
                                                    </tr>
                                                    <tr>
                                                        <td><form:label path="matKhau">Mật khẩu (*) </form:label></td>
                                                        <td><form:password path="matKhau" cssClass="box_input" size="24"/></td>
                                                    </tr>
                                                    <tr>
                                                        <td><form:label path="">Nhập lại mật khẩu (*) </form:label></td>
                                                        <td><form:password name="matKhau2" id="matKhau2" path="" cssClass="box_input" size="24"/></td>
                                                    </tr>
                                                    <tr bgcolor="">
                                                        <td valign="top"><form:label path="hoTen">Họ và Tên (*)</form:label></td>
                                                        <td><form:input path="hoTen" cssClass="box_input" size="24"/></td>
                                                    </tr>
                                                    <tr bgcolor="">
                                                        <td valign="top"><form:label path="cmnd">CMND (*)</form:label></td>
                                                        <td><form:input path="cmnd" cssClass="box_input" size="24" /></td>
                                                    </tr>
                                                    <tr bgcolor="">
                                                        <td valign="top"><form:label path="diaChi">Địa chỉ (*)</form:label></td>
                                                        <td><form:input path="diaChi" cssClass="box_input" size="24"/></td>
                                                    </tr>
                                                    <tr bgcolor="">
                                                        <td valign="top"><form:label path="soDienThoai">Điện thoại (*)</form:label></td>
                                                        <td><form:input path="soDienThoai" cssClass="box_input" size="24"/></td>
                                                    </tr>
                                                    <tr bgcolor="">
                                                        <td valign="top"><form:label path="gioiTinh">Giới tính</form:label></td>
                                                        <td><form:checkbox path="gioiTinh" checked="checked"/> Nam</td>
                                                    </tr>
                                                    <tr bgcolor="">
                                                        <td valign="top">Mã bảo vệ (*)</td>
                                                        <td>
                                                            <table border="0" cellspacing="0" cellpadding="0">
                                                                <tbody>
                                                                    <tr>
                                                                        <td width="50">
                                                                            <input name="codeprotect" type="text" id="codeprotect" class="box_input">
                                                                        </td>
                                                                        <td width="10">&nbsp;</td>
                                                                        <td class="title16">${captcha}                       
                                                                            <input type="hidden" name="codeprotect2" id="codeprotect2" value="${captcha}"></td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr bgcolor="">
                                                        <td valign="top">&nbsp;</td>
                                                        <td><table border="0" cellspacing="0" cellpadding="0">
                                                                <tbody>
                                                                    <tr>
                                                                        <td>
                                                                            <input type="submit" name="button" id="button" value="Đăng ký">
                                                                        </td>
                                                                        <td width="10">&nbsp;</td>
                                                                        <td>&nbsp;</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr bgcolor="">
                                                        <td valign="top">&nbsp;</td>
                                                        <td style="padding-top:10px;">Vui lòng điền đầy đủ, chính xác các thông tin trên, để chúng tôi có thể cung cấp dịch vụ tốt nhất cho bạn</td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </form:form>
                                        <script>document.forms[id = "nguoidung"].cmnd.value = ""</script>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </jsp:body>
</t:layout>